package com.xiaohuihui.springbootes.springbootes.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;



@Document(indexName = "testdoc")
@Data
public class UserEntity {

    @Id
    private String id;
    @Field(type= FieldType.Keyword)
    private Integer age;
    @Field(type= FieldType.Keyword)
    private String sex;
    @Field(type= FieldType.Keyword)
    private String username;
    @Field(type= FieldType.Keyword)
    private String password;

}
